<html>
<head>
<title>Test</title>
</head>
<body>
Test
<?php

echo "1";

$con = mysql_connect('drdoc2.cfcbem1draxy.us-east-1.rds.amazonaws.com:3306', 'DrDocRoot', 'DrDoc5m4ll');

echo "2";


if (!$con) {
	 die ('Could not connect to mySQL database');
}
echo 'Connected to host<br />';



$mysql = "DrDocSmall";


if (!mysql_select_db($mysql)) {
	die ('Could not connect to mySQL database');
}
	echo 'Connected to database<br />';

echo "<br /><br /><br />";

/* GET TABLES FROM DATABASE */
$sql = "SHOW TABLES FROM $mysql";

$result = mysql_query($sql);

if (!$result) {
    echo "DB Error, could not list tables\n";
    exit;
}

while ($row = mysql_fetch_row($result)) {
    echo "Table: {$row[0]}\n<br /><br />";
}
mysql_free_result($result);
/* END */

/* INSERT VALUES */




mysql_close($con);
?>
<br><br>end
</body>
</html>
